// index.js
Page({
  data: {
    navOpacity: 0
  },
  stepToShangcheng(e) {
    wx.navigateTo({
      url: '/pages/shangchengzhuanqu/shangchengzhuanqu',
    });

  },
  stepToHuiyuan(e) {
    wx.navigateTo({
      url: '/pages/huiyuankaitong/huiyuankaitong',
    });
  },
  stepToYouhui(e) {
    wx.navigateTo({
      url: '/pages/youhuiquanzhuanqu/youhuiquanzhuanqu',
    });

  },
  stepToPintuan(e) {
    wx.navigateTo({
      url: '/pages/pintuanzhongxin/pintuanzhongxin',
    });
  },
  stepToMyYouhui(e) {
    wx.navigateTo({
      // url: '/pages/myyouhui/myyouhui',
      url: '/pages/login/login',
    });
  },
  onPageScroll(top) {
    let opacity = (top.scrollTop / 100).toFixed(1);
    this.setData({
      navOpacity: opacity
    });
  },
  stepToFenlei(event){
    wx.setStorageSync('key', event.currentTarget.dataset.id)
    wx.switchTab({
      url: '/pages/fenlei/fenlei',
    })
  }
})